<?php 
$quyen01 = $this->users->getQuyen($this->session->userdata("user_id"));
if(count($quyen01) > 0){
	foreach($quyen01 as $q){
		$quyen[] = $q->id_quyen;
	}
}
else
	$quyen = array();
?>
<?php 
            if(in_array(9, $quyen)) {
     ?>
        <a class="buttonthem" href="<?php echo base_url()?>tailieu/viewAddTailieu">Thêm tài liệu</a>
     <?php }?>
<div class='content'>
	<h2>Danh mục tài liệu</h2>
	<?php
	foreach($list_tailieu as $l_tailieu){
	?>
	<a class="block_folder" href="<?php echo site_url('tailieu/viewall/'.$l_tailieu->id_type_tailieu_vtv4)?>"><?php echo $l_tailieu->ten_type_tailieucol_vtv4?></a>
	<?php } ?>
</div>
<div style='clear:both'></div>
</div>